package com.acane.instagram.feature.register

import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavHostController
import androidx.navigation.compose.composable

const val REGISTER_ROUTE = "register"

fun NavGraphBuilder.registerScreen(
    navController: NavHostController,
    toLogin: () -> Unit,
) {
    composable(REGISTER_ROUTE) {
        RegisterRoute(
            navController = navController,
            toLogin = toLogin
        )
    }
}

fun NavController.navigateToRegister(): Unit {
    navigate(REGISTER_ROUTE)
}
